package com.xunlai.infra.permission.business.converter;

import com.xunlai.infra.permission.business.dao.entity.PhotoGallery;
import com.xunlai.infra.permission.business.vo.photoGallery.PhotoCreateVo;
import com.xunlai.infra.permission.business.vo.photoGallery.PhotoListVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liang
 * @date 8/7/23 8:43 PM
 */
@Mapper
public interface PhotoGalleryConverter {

    PhotoGalleryConverter INSTANCE = Mappers.getMapper(PhotoGalleryConverter.class);

    PhotoGallery convertCreateVo2Entity(PhotoCreateVo photoCreateVo);

    PhotoListVo convertEntity2ListVo(PhotoGallery photoGallery);
}
